<?phpnamespace App\Repositories\Api;use App\Models\Banner;use App\Repositories\PictureMappingRepository;class BannerRepository{    public function getBannerByName($name = "")    {        /*  $redis_key = "banner_" . $name . '_data';          $result = getRedisByKey($redis_key);          if (empty($result)) {*/        $res = Banner::where(['name' => $name])->first();        if (!$res) return NULL;        $result = (new PictureMappingRepository())->getMappingBySearch([            'object_id' => $res['id'],            'object_type' => "banner"        ]);        /*    // Cache::set($cache_key, $result);            setRedisByDb($redis_key, $result);        }*/        return $result;    }}